home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / Bowers Development / AppMaker 2.1.sit / AppMaker 2.1 / Examples / Procedural / AMReminder / Globals.c < prev    next >
MacBinary  |  1997-06-10  |  1.9 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Jun 10 12:23:31 1997, modified Tue Jun 10 12:23:31 1997, creator 'CWIE', type ASCII, 1401 bytes "Globals.c" , at 0x5f9 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 47 6c 6f 62 61 6c | 73 2e 63 00 00 00 00 00 |..Global|s.c.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 05 79 00 | 00 01 1e af c3 30 03 af |......y.|.....0..|
|00000060| c3 30 03 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.0......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8b e9 00 00 |........|........|
|00000080| 2f 2a 20 47 6c 6f 62 61 | 6c 73 2e 63 20 2a 2f 0d |/* Globa|ls.c */.|
|00000090| 2f 2a 20 43 72 65 61 74 | 65 64 20 36 2f 31 30 2f |/* Creat|ed 6/10/|
|000000a0| 39 37 20 31 32 3a 32 33 | 20 50 4d 20 62 79 20 41 |97 12:23| PM by A|
|000000b0| 70 70 4d 61 6b 65 72 20 | 2a 2f 0d 0d 23 69 6e 63 |ppMaker |*/..#inc|
|000000c0| 6c 75 64 65 20 3c 54 79 | 70 65 73 2e 68 3e 0d 23 |lude <Ty|pes.h>.#|
|000000d0| 69 6e 63 6c 75 64 65 20 | 3c 51 75 69 63 6b 64 72 |include |<Quickdr|
|000000e0| 61 77 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |aw.h>.#i|nclude <|
|000000f0| 43 6f 6e 74 72 6f 6c 73 | 2e 68 3e 0d 23 69 6e 63 |Controls|.h>.#inc|
|00000100| 6c 75 64 65 20 3c 44 69 | 61 6c 6f 67 73 2e 68 3e |lude <Di|alogs.h>|
|00000110| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 45 76 65 6e 74 |.#includ|e <Event|
|00000120| 73 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 4c |s.h>.#in|clude <L|
|00000130| 69 73 74 73 2e 68 3e 0d | 23 69 6e 63 6c 75 64 65 |ists.h>.|#include|
|00000140| 20 3c 4d 65 6e 75 73 2e | 68 3e 0d 23 69 6e 63 6c | <Menus.|h>.#incl|
|00000150| 75 64 65 20 3c 54 65 78 | 74 45 64 69 74 2e 68 3e |ude <Tex|tEdit.h>|
|00000160| 0d 23 69 6e 63 6c 75 64 | 65 20 22 47 6c 6f 62 61 |.#includ|e "Globa|
|00000170| 6c 73 2e 68 22 0d 0d 2f | 2a 53 74 61 6e 64 61 72 |ls.h"../|*Standar|
|00000180| 64 20 76 61 72 73 3a 2a | 2f 0d 42 6f 6f 6c 65 61 |d vars:*|/.Boolea|
|00000190| 6e 09 09 09 71 75 69 74 | 74 69 6e 67 54 69 6d 65 |n...quit|tingTime|
|000001a0| 3b 0d 45 76 65 6e 74 52 | 65 63 6f 72 64 09 09 63 |;.EventR|ecord..c|
|000001b0| 75 72 45 76 65 6e 74 3b | 0d 57 69 6e 64 6f 77 50 |urEvent;|.WindowP|
|000001c0| 74 72 09 09 63 75 72 57 | 69 6e 64 6f 77 3b 0d 57 |tr..curW|indow;.W|
|000001d0| 69 6e 49 6e 66 6f 50 74 | 72 09 09 63 75 72 3b 0d |inInfoPt|r..cur;.|
|000001e0| 42 6f 6f 6c 65 61 6e 09 | 09 09 69 6e 42 61 63 6b |Boolean.|..inBack|
|000001f0| 67 72 6f 75 6e 64 3b 0d | 53 79 73 43 6f 6e 66 69 |ground;.|SysConfi|
|00000200| 67 52 65 63 09 73 79 73 | 43 6f 6e 66 69 67 3b 0d |gRec.sys|Config;.|
|00000210| 0d 57 69 6e 49 6e 66 6f | 52 65 63 09 09 6e 6f 43 |.WinInfo|Rec..noC|
|00000220| 75 72 3b 0d 0d 2f 2a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ur;../*-|--------|
|00000230| 2d 2a 2f 0d 76 6f 69 64 | 20 49 6e 69 74 47 6c 6f |-*/.void| InitGlo|
|00000240| 62 61 6c 73 20 28 76 6f | 69 64 29 0d 7b 0d 09 63 |bals (vo|id).{..c|
|00000250| 75 72 57 69 6e 64 6f 77 | 20 3d 20 6e 69 6c 3b 0d |urWindow| = nil;.|
|00000260| 09 6e 6f 43 75 72 2e 74 | 65 78 74 20 3d 20 6e 69 |.noCur.t|ext = ni|
|00000270| 6c 3b 0d 09 6e 6f 43 75 | 72 2e 76 53 63 72 6f 6c |l;..noCu|r.vScrol|
|00000280| 6c 20 3d 20 6e 69 6c 3b | 0d 09 6e 6f 43 75 72 2e |l = nil;|..noCur.|
|00000290| 68 53 63 72 6f 6c 6c 20 | 3d 20 6e 69 6c 3b 0d 09 |hScroll |= nil;..|
|000002a0| 6e 6f 43 75 72 2e 66 69 | 6c 65 4e 75 6d 20 3d 20 |noCur.fi|leNum = |
|000002b0| 30 3b 0d 09 6e 6f 43 75 | 72 2e 64 69 72 74 79 20 |0;..noCu|r.dirty |
|000002c0| 3d 20 66 61 6c 73 65 3b | 0d 09 6e 6f 43 75 72 2e |= false;|..noCur.|
|000002d0| 77 69 6e 64 6f 77 4b 69 | 6e 64 20 3d 20 6e 6f 57 |windowKi|nd = noW|
|000002e0| 69 6e 64 6f 77 3b 0d 0d | 09 63 75 72 20 3d 20 26 |indow;..|.cur = &|
|000002f0| 6e 6f 43 75 72 3b 0d 7d | 20 2f 2a 49 6e 69 74 47 |noCur;.}| /*InitG|
|00000300| 6c 6f 62 61 6c 73 2a 2f | 0d 0d 2f 2a 2d 2d 2d 2d |lobals*/|../*----|
|00000310| 2d 2d 2d 2d 2d 2d 2a 2f | 0d 76 6f 69 64 20 53 65 |------*/|.void Se|
|00000320| 74 49 6e 66 6f 20 28 57 | 69 6e 64 6f 77 50 74 72 |tInfo (W|indowPtr|
|00000330| 09 09 77 69 6e 64 6f 77 | 29 0d 7b 0d 09 57 69 6e |..window|).{..Win|
|00000340| 49 6e 66 6f 50 74 72 09 | 09 69 6e 66 6f 50 74 72 |InfoPtr.|.infoPtr|
|00000350| 3b 0d 0d 09 69 66 20 28 | 77 69 6e 64 6f 77 20 21 |;...if (|window !|
|00000360| 3d 20 63 75 72 57 69 6e | 64 6f 77 29 20 7b 0d 09 |= curWin|dow) {..|
|00000370| 09 63 75 72 57 69 6e 64 | 6f 77 20 3d 20 77 69 6e |.curWind|ow = win|
|00000380| 64 6f 77 3b 0d 09 09 69 | 66 20 28 63 75 72 57 69 |dow;...i|f (curWi|
|00000390| 6e 64 6f 77 20 21 3d 20 | 6e 69 6c 29 20 7b 0d 09 |ndow != |nil) {..|
|000003a0| 09 09 69 6e 66 6f 50 74 | 72 20 3d 20 28 57 69 6e |..infoPt|r = (Win|
|000003b0| 49 6e 66 6f 50 74 72 29 | 20 47 65 74 57 52 65 66 |InfoPtr)| GetWRef|
|000003c0| 43 6f 6e 20 28 63 75 72 | 57 69 6e 64 6f 77 29 3b |Con (cur|Window);|
|000003d0| 0d 09 09 09 63 75 72 20 | 3d 20 69 6e 66 6f 50 74 |....cur |= infoPt|
|000003e0| 72 3b 0d 09 09 7d 20 65 | 6c 73 65 20 7b 0d 09 09 |r;...} e|lse {...|
|000003f0| 09 63 75 72 20 3d 20 26 | 6e 6f 43 75 72 3b 0d 09 |.cur = &|noCur;..|
|00000400| 09 7d 0d 09 7d 0d 7d 20 | 2f 2a 53 65 74 49 6e 66 |.}..}.} |/*SetInf|
|00000410| 6f 2a 2f 0d 0d 2f 2a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |o*/../*-|--------|
|00000420| 2d 2a 2f 0d 76 6f 69 64 | 20 53 65 74 4e 65 77 49 |-*/.void| SetNewI|
|00000430| 6e 66 6f 20 28 57 69 6e | 64 6f 77 50 74 72 09 09 |nfo (Win|dowPtr..|
|00000440| 77 69 6e 64 6f 77 29 0d | 7b 0d 09 57 69 6e 49 6e |window).|{..WinIn|
|00000450| 66 6f 50 74 72 09 09 69 | 6e 66 6f 50 74 72 3b 0d |foPtr..i|nfoPtr;.|
|00000460| 0d 09 69 6e 66 6f 50 74 | 72 20 3d 20 28 57 69 6e |..infoPt|r = (Win|
|00000470| 49 6e 66 6f 50 74 72 29 | 20 4e 65 77 50 74 72 20 |InfoPtr)| NewPtr |
|00000480| 28 73 69 7a 65 6f 66 20 | 28 57 69 6e 49 6e 66 6f |(sizeof |(WinInfo|
|00000490| 52 65 63 29 29 3b 0d 09 | 53 65 74 57 52 65 66 43 |Rec));..|SetWRefC|
|000004a0| 6f 6e 20 28 77 69 6e 64 | 6f 77 2c 20 28 6c 6f 6e |on (wind|ow, (lon|
|000004b0| 67 29 20 69 6e 66 6f 50 | 74 72 29 3b 0d 09 53 65 |g) infoP|tr);..Se|
|000004c0| 74 49 6e 66 6f 20 28 77 | 69 6e 64 6f 77 29 3b 0d |tInfo (w|indow);.|
|000004d0| 7d 20 2f 2a 53 65 74 4e | 65 77 49 6e 66 6f 2a 2f |} /*SetN|ewInfo*/|
|000004e0| 0d 0d 2f 2a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2a 2f |../*----|------*/|
|000004f0| 0d 76 6f 69 64 20 44 69 | 73 63 61 72 64 49 6e 66 |.void Di|scardInf|
|00000500| 6f 20 28 57 69 6e 64 6f | 77 50 74 72 09 09 77 69 |o (Windo|wPtr..wi|
|00000510| 6e 64 6f 77 29 0d 7b 0d | 09 57 69 6e 49 6e 66 6f |ndow).{.|.WinInfo|
|00000520| 50 74 72 09 09 69 6e 66 | 6f 50 74 72 3b 0d 0d 09 |Ptr..inf|oPtr;...|
|00000530| 69 66 20 28 77 69 6e 64 | 6f 77 20 3d 3d 20 63 75 |if (wind|ow == cu|
|00000540| 72 57 69 6e 64 6f 77 29 | 20 7b 0d 09 09 53 65 74 |rWindow)| {...Set|
|00000550| 49 6e 66 6f 20 28 6e 69 | 6c 29 3b 0d 09 7d 0d 09 |Info (ni|l);..}..|
|00000560| 69 6e 66 6f 50 74 72 20 | 3d 20 28 57 69 6e 49 6e |infoPtr |= (WinIn|
|00000570| 66 6f 50 74 72 29 20 47 | 65 74 57 52 65 66 43 6f |foPtr) G|etWRefCo|
|00000580| 6e 20 28 77 69 6e 64 6f | 77 29 3b 0d 09 44 69 73 |n (windo|w);..Dis|
|00000590| 70 6f 73 65 50 74 72 20 | 28 28 50 74 72 29 20 69 |posePtr |((Ptr) i|
|000005a0| 6e 66 6f 50 74 72 29 3b | 0d 09 48 69 64 65 57 69 |nfoPtr);|..HideWi|
|000005b0| 6e 64 6f 77 20 28 77 69 | 6e 64 6f 77 29 3b 0d 09 |ndow (wi|ndow);..|
|000005c0| 44 69 73 70 6f 73 65 57 | 69 6e 64 6f 77 20 28 77 |DisposeW|indow (w|
|000005d0| 69 6e 64 6f 77 29 3b 0d | 7d 20 2f 2a 44 69 73 63 |indow);.|} /*Disc|
|000005e0| 61 72 64 49 6e 66 6f 2a | 2f 0d 0d 2f 2a 20 47 6c |ardInfo*|/../* Gl|
|000005f0| 6f 62 61 6c 73 20 2a 2f | 0d 00 00 00 00 00 00 00 |obals */|........|
|00000600| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000610| 5a 1c 00 33 57 c2 21 61 | 61 bf 00 34 5b 24 36 43 |Z..3W.!a|a..4[$6C|
|00000620| 61 ea 00 35 f0 1c f7 b5 | fb 05 00 36 e0 38 ef 6c |a..5....|...6.8.l|
|00000630| 09 47 6c 6f 62 61 6c 73 | 2e 63 02 00 00 00 54 45 |.Globals|.c....TE|
|00000640| 58 54 43 57 49 45 00 00 | c7 e7 c1 76 00 00 00 00 |XTCWIE..|...v....|
|00000650| 00 00 54 45 58 54 43 57 | 49 45 00 00 c7 e7 c1 76 |..TEXTCW|IE.....v|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 af c2 f7 c3 00 00 | 05 79 00 00 01 1e 9c 8b |........|.y......|
|00000680| c4 49 00 41 31 75 94 41 | bf 4f 00 42 21 91 8b f7 |.I.A1u.A|.O.B!...|
|00000690| ba 55 00 43 11 ae 83 ae | b5 5b 00 44 01 cb 7b 64 |.U.C....|.[.D..{d|
|000006a0| b0 62 00 45 1d 5f 7a 78 | a3 0b 00 46 31 02 75 68 |.b.E._zx|...F1.uh|
|000006b0| 93 37 00 47 f0 b3 f7 ce | f0 07 00 48 e1 68 ef 9d |.7.G....|...H.h..|
|000006c0| e0 10 00 49 d2 1c e7 6c | d0 18 00 4a c2 d0 df 3b |...I...l|...J...;|
|000006d0| c0 20 00 4b b3 84 d7 09 | b0 28 00 4c a4 39 ce d8 |. .K....|.(.L.9..|
|000006e0| a0 31 00 4d 94 ed c6 a7 | 90 39 00 4e 85 a1 be 76 |.1.M....|.9.N...v|
|000006f0| 80 41 00 4f 76 56 b6 45 | 70 49 00 50 67 0a ae 14 |.A.OvV.E|pI.Pg...|
|00000700| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+